package com.liuyonggang.generator.service;

import java.util.List;

import com.liuyonggang.generator.model.DbInfo;
import com.liuyonggang.generator.util.PageInfo;
import com.liuyonggang.generator.util.ResultVo;

public interface DbInfoApi {
	
	int countModel();
	
	List<DbInfo> findAll(DbInfo task);

    PageInfo<DbInfo> findAllByPage(PageInfo<DbInfo> pageInfo);

    ResultVo addDbInfo(DbInfo db);

    DbInfo findById(int id);

    ResultVo updateDbInfo(DbInfo db);

    ResultVo deleteDbInfo(DbInfo db);
}
